package com.test.demo.finals;

public class FinalDemo {
	static final int F1 = 1;
	public static final int F2 = 2;
	final int m;
	
	FinalDemo(int i){
		m = i;
	}
	
	public static void main(String[] args){
		FinalDemo fd1 = new FinalDemo(1);
		FinalDemo fd2 = new FinalDemo(2);
		System.out.println("fd1.m = " + fd1.m + "\tfd2.m = " + fd2.m);
		System.out.println("FinalDemo.F1 = " + FinalDemo.F1);
		System.out.println("FinalDemo.F2 = " + FinalDemo.F2);
		//fd1 = fd1 + 10;
		//FinalDemo.F1 = 100;
	}

}
